import { defineStore } from "pinia";

export interface TodoItem {
  id: number;
  name: string;
  isDone: boolean;
}

export type TodoList = TodoItem[];

export const useTodoStore = defineStore("todo", {
  state: () => {
    return {
      todoList: [
        { id: 1, name: "洗脚1", isDone: true },
        { id: 2, name: "洗脚2", isDone: false },
        { id: 3, name: "洗脚3", isDone: false },
      ],
    };
  },
  getters: {},
  actions: {},
});
